From e932db97bb816a57a5a90eff35d81b3002cc41cf Mon Sep 17 00:00:00 2001 From: Bernd Zeimetz Date: Tue, 4 May 2010 22:21:43 +0200 Subject: [PATCH] Build a manpage for gpsbabel using help2man. --- debian/control | 2 +- debian/gpsbabel.help2man | 3 +++ debian/gpsbabel.manpages | 1 + debian/rules | 18 ++++++++++++++++-- 4 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 debian/gpsbabel.help2man create mode 100644 debian/gpsbabel.manpages diff --git a/debian/control b/debian/control index 81977ae46..cf1af039b 100644 --- a/debian/control +++ b/debian/control @@ -4,7 +4,7 @@ Priority: optional Maintainer: Bernd Zeimetz Build-Depends: debhelper (>= 7.0.0), quilt, autotools-dev, autoconf, - libexpat1-dev, expat, + libexpat1-dev, expat, help2man, texlive-base-bin, texlive-base, fop, xsltproc, docbook-xml, docbook-xsl, libxml2-utils, libusb-dev, zlib1g-dev, libpaper-dev, libqt4-dev diff --git a/debian/gpsbabel.help2man b/debian/gpsbabel.help2man new file mode 100644 index 000000000..310c0f3b6 --- /dev/null +++ b/debian/gpsbabel.help2man @@ -0,0 +1,3 @@ +[see also] +Detailed lists of filters and formats are given in the doc at /usr/share/doc/gpsbabel/htmldoc/. + diff --git a/debian/gpsbabel.manpages b/debian/gpsbabel.manpages new file mode 100644 index 000000000..d4c44bef8 --- /dev/null +++ b/debian/gpsbabel.manpages @@ -0,0 +1 @@ +debian/gpsbabel.1 diff --git a/debian/rules b/debian/rules index 84ad02fea..1b42a4336 100755 --- a/debian/rules +++ b/debian/rules @@ -5,7 +5,7 @@ PKG_GPSBABEL=gpsbabel PKG_GPSBABEL_GUI=gpsbabel-gui - +VERSION := $(shell dpkg-parsechangelog | awk '/^Version/ {print $$2}') #we use quilt to handle our patches include /usr/share/quilt/quilt.make @@ -36,10 +36,23 @@ endif touch $@ +debian/gpsbabel.1: + export PATH="$(CURDIR):$$PATH" ;\ + help2man --manual='gpsbabel documentation' \ + --section=1 \ + --name='GPS route and waypoint data converter' \ + --source='http://www.gpsbabel.org' \ + --locale=C \ + -N \ + --version-string=$(VERSION) \ + --opt-include=$(CURDIR)/debian/gpsbabel.help2man \ + -o $@ \ + gpsbabel + gui/Makefile: patch cd gui && qmake-qt4 -build: build-stamp build-gui-stamp +build: build-stamp build-gui-stamp debian/gpsbabel.1 build-stamp: configure-stamp dh_testdir @@ -74,6 +87,7 @@ clean-patched: zlib/empty jeeps/Makefile shapelib/Makefile rm -f config.guess config.sub rm -rf gui/Makefile gui/objects gui/setup.iss + rm -f debian/gpsbabel.1 dh_clean install: build-stamp build-gui-stamp -- 2.30.2